package club.ruanx.auth.provider;

import club.ruanx.auth.token.AdminToken;
import club.ruanx.security.provider.BaseDetailsAuthenticationProvider;

/**
 * @author 阮胜
 * @date 2018/9/15 0:01
 */
public class AdminProvider extends BaseDetailsAuthenticationProvider {
    @Override
    public boolean supports(Class<?> authentication) {
        return authentication.isAssignableFrom(AdminToken.class);
    }
}
